package com.qf.demo;

import com.qf.pojo.Account;
import com.qf.service.AccountService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.util.List;

/**
 * @Description: 公用常量
 * @Data: 2022/8/30 14:50
 * @Pacakge: com.qf.demo
 * @ClassName: Demo
 * @Author: fan
 */
public class Demo {
    public static void main(String[] args) {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("bean.xml");
        AccountService accountService = (AccountService) applicationContext.getBean("accountService");
        List<Account> allAccount = accountService.findAllAccount();
        allAccount.stream().forEach(o-> System.out.println(o));

    }
}
